package softtech.apps.model;

public class Conversation {
	public int id;
	public int left; // Left = 1, Right = 0
	public String message;
	public int UserIdFrom;
	public int id_server;
	public Conversation(int id,int left, String message, int userIdFrom,int id_server) {
		super();
		this.id = id;
		this.left = left; // Left = Tin nhan nhan duoc !Left = Right = Tin nhan gui di
		this.message = message;
		this.UserIdFrom = userIdFrom;
		this.id_server = id_server;
	}
	
	public Conversation(int left, String message, int userIdFrom,int id_server) {
		super();
		this.left = left;
		this.message = message;
		this.UserIdFrom = userIdFrom;
		this.id_server = id_server;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	public int isLeft() {
		return left;
	}
	public void setLeft(int left) {
		this.left = left;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}

	public int getUserIdFrom() {
		return UserIdFrom;
	}

	public void setUserIdFrom(int userIdFrom) {
		UserIdFrom = userIdFrom;
	}

	public int getId_server() {
		return id_server;
	}

	public void setId_server(int id_server) {
		this.id_server = id_server;
	}
}